//
//  TwitterHelper.h
//  mytcom
//
//  Created by Le Lam on 2/17/11.
//  Copyright 2011 Seta:Cinq VN. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PublicDelegate.h"
#import "OAuthConsumer.h"

#define kTwitterDidAuthorize	@"kTwitterDidAuthorize"

@interface TwitterHelper : NSObject<UIWebViewDelegate> {
	OAToken			*requestToken;
	OAToken			*accessToken;
	NSDictionary	*responseQueryVars;
	OAConsumer		*consumer;
	UIWebView		*authorizeWebView;
	UIActivityIndicatorView *loadingIndicator;
	NSMutableData *responseData;
	NSMutableString *currentMethod;
	id<PublicDelegate> publicDelegate;
}

@property (nonatomic, retain) UIWebView	*authorizeWebView;
@property (nonatomic, retain) OAToken *accessToken;
@property (nonatomic, retain) OAConsumer *consumer;
@property (nonatomic, assign) id<PublicDelegate> publicDelegate;

- (void)authorize;
+ (BOOL)isAuthorized;
+ (void)deleteCredential;
- (void)sendStatus:(NSString *)status;

@end
